package test.service;

import com.nf.Annotation.*;
import test.dao.UserDao;

@ClassAnnotation("UserService")
@Scope()
public class UserServiceImpl implements UserService {
    private UserDao userDao;

    @Autowired("userDaoImpl")
    public void setUserDao(UserDao userDao){
        this.userDao=userDao;
    }
    @Initialization
    public void init(){
        System.out.println("正在初始化service1。。。");
    }
    public void getUser() {
        userDao.getUser();
    }
    @Destroy
    public void dele(){
        System.out.println("准备销毁service1");
    }
}
